package com.xilihui.xlh.business.activitys;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.xilihui.xlh.R;
import com.xilihui.xlh.component.recyclerview.BaseAdapter;
import com.xilihui.xlh.component.recyclerview.BaseViewHolder;
import com.xilihui.xlh.core.app.BaseCompatActivity;

import java.util.ArrayList;

import butterknife.BindView;

/**
 * Created by Administrator on 2018/5/24.
 */

public class RobBillRecordActivity extends BaseCompatActivity{
    
    @BindView(R.id.recyclerview)
    RecyclerView recyclerView;
    
    @Override
    public int getLayout() {
        return R.layout.activity_rob_bill_record;
    }

    @Override
    public String initTitle() {
        return "抢单记录";
    }

    @Override
    public void initUI(@Nullable Bundle savedInstanceState) {

        ArrayList<String> data = new ArrayList<>();
        for (int i=0;i<10;i++){
            data.add("");
        }
        
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        recyclerView.setAdapter(new BaseAdapter(this,data) {
            @Override
            protected int setLayoutId() {
                return R.layout.recycler_item_rob_bill;
            }

            @Override
            protected void getView(BaseViewHolder holder, Object entity, int position) {

            }

            @Override
            public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

            }
        });
        
    }

    @Override
    public void initData() {
        
    }
    
    
}
